package io.edap.protobuf.wire.packet;

/**
 * 包体类型
 *
 * @author veione
 */
public enum PacketType {
    EVENT(0, IEvent.class),
    REQUEST(1, IRequest.class),
    RESPONSE(2, IResponse.class),
    NOTIFY(4, INotify.class);

    public final int type;
    public final Class<?> clazz;

    PacketType(int type, Class<?> clazz) {
        this.type = type;
        this.clazz = clazz;
    }
}
